package webEquipeRechercheGwt.client.entityMirror;

import java.io.Serializable;
import java.sql.Date;
import java.util.ArrayList;
import java.util.Collection;


@SuppressWarnings("serial")
public class SeminarMirror implements Serializable {

	private int id;
	private String title;
	private String abstrac;
	private String place;
	private Date dateFrom;
	private Date dateUntil;
	private String url4Slides;
	private Collection<PersonMirror> speakers;
	
	public SeminarMirror(){
		super();
		speakers = new ArrayList<PersonMirror>();
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAbstrac() {
		return abstrac;
	}
	public void setAbstrac(String abstrac) {
		this.abstrac = abstrac;
	}
	public String getPlace() {
		return place;
	}
	public void setPlace(String place) {
		this.place = place;
	}
	public Date getDateFrom() {
		return dateFrom;
	}
	public void setDateFrom(Date dateFrom) {
		this.dateFrom = dateFrom;
	}
	public Date getDateUntil() {
		return dateUntil;
	}
	public void setDateUntil(Date dateUntil) {
		this.dateUntil = dateUntil;
	}
	public String getUrl4Slides() {
		return url4Slides;
	}
	public void setUrl4Slides(String url4Slides) {
		this.url4Slides = url4Slides;
	}
	public Collection<PersonMirror> getSpeakers() {
		return speakers;
	}
	public void setSpeakers(Collection<PersonMirror> speakers) {
		this.speakers = speakers;
	}
	public boolean equals(SeminarMirror p){
		return p.getId()==getId();
	}
	
	@Override
	public boolean equals(Object p){
		try{
			SeminarMirror param = (SeminarMirror) p;
			return param.getId()==getId();
		}
		catch(ClassCastException e){
			return false;
		}
	}
}
